Skip to content

fix: Enforce node 22, python 3.13 minimums, warn below node 24, python 3.14 - #35

Merged
danieljimeneznz merged 3 commits into
mainfrom
fix/enforce-python-node22
Jun 19, 2026
Merged

fix: Enforce node 22, python 3.13 minimums, warn below node 24, python 3.14#35
danieljimeneznz merged 3 commits into
mainfrom
fix/enforce-python-node22

Conversation

@danieljimeneznz

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 19, 2026 04:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the action’s Node and Python configuration policy checks to enforce new minimum versions (Node 22+, Python 3.13+) while emitting warnings for versions below the recommended baselines (Node <24, Python <3.14), and plumbs those warnings through to GitHub Actions output.

Changes:

  • Introduce a shared ConfigCheckResult shape (violations + warnings) and surface warnings via core.warning.
  • Update Node config checks to require Node >=22 and warn for Node 22/23 (recommended >=24).
  • Add Python checks requiring a resolvable .python-version (>=3.13; warn if 3.13) and validating requires-python when present.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/python-config.test.js Updates existing tests for new return shape; adds tests for .python-version and requires-python validation and warning behavior.
test/node-config.test.js Updates tests for new return shape and adds coverage for Node-version warnings below the recommended baseline.
src/index.ts Collects and emits config warnings, and aggregates config violations from new result objects.
src/helpers/python-config.ts Adds Python version policy checks for .python-version and requires-python, and returns warnings/violations via ConfigCheckResult.
src/helpers/node-config.ts Adds recommended Node baseline warnings, lowers enforced minimum to Node 22, and returns ConfigCheckResult.
src/helpers/config-files.ts Introduces shared finding/result types and helpers for splitting warnings vs violations.
README.md Documents updated Node/Python policy rules and changes the default Python version input documentation.
dist/index.mjs Rebuild output reflecting updated policy behavior (warnings + new minimums).
action.yml Updates default python-version input to 3.14.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/helpers/python-config.ts Outdated
Comment thread src/helpers/python-config.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.

@danieljimeneznz
danieljimeneznz requested a review from Copilot June 19, 2026 05:14
Comment thread .github/workflows/codeowners-merge.yaml Dismissed
@danieljimeneznz
danieljimeneznz merged commit b15a776 into main Jun 19, 2026
9 checks passed
@danieljimeneznz
danieljimeneznz deleted the fix/enforce-python-node22 branch June 19, 2026 05:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Comment on lines +4 to +11
pull_request_target: { types: [opened] }
issue_comment: { types: [created] }
pull_request_review: { types: [submitted] }

jobs:
merge-check:
uses: elementx-ai/workflows/.github/workflows/codeowners-merge.yaml@main
secrets: inherit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants